public class ParagonLevel {
	public int level;
	public int maxLevelXP;
	int[] paragon;
	public long maxParagon;
	public double procent;


	public ParagonLevel(int arg0) {
		level = arg0;

		paragon = new int[101];
		maxParagon = new Long("10454400000");
		init();
		maxLevelXP = paragon[arg0+1];
	}

	public  void init() {
		for (int i = 0; i < 60; i++) {
			int help = 7200000 + (i * 1440000);
			paragon[i+1] = help;

		}
		for (int i = 60; i < 70; i++) {
			int help = 92160000 + ((i - 59) * 2880000);
			paragon[i+1] = help;

		}
		for (int i = 70; i < 80; i++) {
			int help = 120960000 + ((i - 69) * 5040000);
			paragon[i+1] = help;

		}
		for (int i = 80; i < 90; i++) {
			int help = 171360000 + ((i - 79) * 6480000);
			paragon[i+1] = help;

		}
		for (int i = 90; i < 100; i++) {
			int help = 236160000 + ((i - 89) * 8640000);
			paragon[i+1] = help;

		}

	}
	
	public long getXPfarmed(){
		long result = 0;
		for(int i = 0; i < level+1;i++){
			result+= paragon[i];
		}
		
		return result;
	}

	public long getXPfarmed(int arg0){
		long result = 0;
		for(int i = 0; i < arg0;i++){
			result+= paragon[i];
		}
		
		return result;
	}
	
	public void printArray() {
		for (int i = 0; i < paragon.length; i++) {
			System.out.println(i + " : " + paragon[i]);
		}
	}
}
